package exceptionDemo;

public class Demo7 {
	public static void main(String[] args) {
		try{
			String string = null;
			System.err.println(string.length());
			int a =10;
			int b =a/0;
		}catch(NullPointerException e){
			System.out.println("gogo");
		}catch(ArithmeticException e){
			System.out.println("0000");
		}catch(Exception e){
			System.out.println("deal all");
		}
	}
}
